package com.kgc.scd.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created On : 2022/11/16.
 * <p>
 * Author : Administrator
 * <p>
 * Description: ShopOrder
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ShopOrder {


    /**
     * 编号
     */
    private String id;

    /**
     * 用户编号
     */
    private String userId;

    /**
     * 订单状态
     */
    private Integer shoppingStatus;

    /**
     * 地址编号
     */
    private String addressId;

    /**
     * 附言
     */
    private String postscript;

    /**
     * 运费
     */
    private double shoppingFee;

    /**
     * 微信订单号
     */
    private String payId;

    /**
     * 实际支付的金额
     */
    private double actualPrice;

    /**
     * 积分
     */
    private Integer integration;

    /**
     * 订单总价
     */
    private double orderPrice;

    /**
     * 生成订单时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;

    /**
     * 确认时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date confirmTime;

    /**
     * 支付时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 回调状态
     */
    private String callbackStatus;

}
